package com.singzi.testCase;

import org.junit.Test;

public class ClassTest {

    public void test001(){

    }
    public int test001(int a){

        return 0;

    }


    public static void main(String[] args) {
        Test3 test1 = new Test3() {
            @Override
            public int test01() {
                return 3;
            }
        };
    }
    @Test
    public void test01(){
        C c = new C();
        B b = new B();
        C d = (C)b;
        B e  = (B)c;
    }

}
interface Test01{
    int test01();

}
interface Test02{

}
abstract class Test3 implements Test01, Test02{
    @Override
    public int test01(){
        System.out.println("test....");
        return 0;
    }

}
class Test1
{

    {
        System.out.println("first");
    }
    public static Test1 t1 = new Test1();


    {
        System.out.println("blockA");
    }
    static
    {
        System.out.println("blockB");
    }
    public static void main(String[] args)
    {
        Test1 t2 = new Test1();
    }
}
class A{

}
class B extends A{

}
class C extends B{

}
